package com.dkd.http.controller;

import com.dkd.entity.RoleEntity;
import com.dkd.service.RoleService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 角色管理
 */
@RestController
@RequestMapping("/role")
@RequiredArgsConstructor
public class RoleController {
	private final RoleService roleService;
	
	/**
	 * 条件查询
	 * @return 列表
	 */
	@GetMapping
	public List<RoleEntity> findList() {
		return roleService.list();
	}
}
